/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2024 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32l4xx_hal.h"
#include "mb.h"
#include "user_mb_app.h"
#include "stm32l4xx_hal_usart.h"
#include "stm32l4xx_hal_tim.h"
#include "mbcrc.h"



typedef struct
{
 	uint16_t id; //从机地址
 

}Angle_sensor;









void Error_Handler(void);
void MX_TIM2_Init(uint32_t Period);
void MX_USART1_UART_Init(uint32_t BaudRate);




#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
